package com.sifa.springcloud.hystrixhandler;

import com.sifa.springcloud.service.PaymentHystrixTest;
import org.springframework.stereotype.Component;

@Component
public class HystrixExceptionHandler implements PaymentHystrixTest {
    @Override
    public String payment(Integer id) {
        return "系统异常了啊";
    }
    @Override
    public String paymentError(Integer id) {
        return "系统真的有问题，别访问了";
    }
}
